/**
 * 
 */
package com.google.code.sip.ucenter.model;

/**
 * 性别枚举
 * 
 * @author Liuye
 * 
 */
public enum IdCardType {
	IdCard("IdCard"), // 身份证
	Passport("Passport"), // 护照
	DrivingLicense("DrivingLicense") // 驾驶证
	;
	private String value;

	IdCardType(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return value;
	}

	public String getComment() {
		if ("IdCard".equals(value)) {
			return "身份证";
		}
		if ("Passport".equals(value)) {
			return "护照";
		}
		if ("DrivingLicense".equals(value)) {
			return "驾驶证";
		}
		return null;
	}
}
